#include<iostream>

#include<cstdlib>
class Test
{
    public:
    Test()
    {
        std::cout << "无参构造函数\n";
    }
    ~Test()
    {
        std::cout << "析构函数\n";
    }
};
int main()
{
    // Test *t = new Test;
    // delete t;
    // Test *t = (Test *)malloc(sizeof(Test));
    // free(t);

    Test *t = new Test[10];
    delete[] t;
    return 0;
}